Closed
Conversation
a563c34 to
c20631c
Compare
Summary: This commit updates the nightly PyPI publish workflow to include additional triggers for publishing. It now allows publishing on tag pushes, specifically for versioned tags (e.g., "v*" and "*.*.*"), in addition to the existing scheduled runs. Changes: - Added `push` triggers for versioned tags in `.github/workflows/nightly-pypi.yml`. - Modified conditions for building and publishing to accommodate tag events. This enhancement improves the flexibility of the publishing process, enabling immediate releases upon tagging.
c20631c to
0d93246
Compare
Contributor
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
.github/workflows/nightly-pypi.ymlpushtriggers for version tags:v*and*.*.*.if: github.ref_type != 'tag'.SETUPTOOLS_SCM_PRETEND_VERSIONonly for non-tag events; tagged builds derive version from the tag via setuptools-scm.ref_type == 'tag'(stable release).Behavior
v0.2.0): produces a stable artifact with version0.2.0and publishes to PyPI.How to verify
PYPI_API_TOKENis configured in repository secrets.git tag v0.2.0 && git push origin v0.2.0.dist/use the tag version (nodev).Safety
PYPI_API_TOKENor test on a fork/private repo.